﻿using Microsoft.AspNetCore.Identity;

namespace ECommerce.AuthService.Models;

/// <summary>
/// 应用程序用户实体
/// 继承自IdentityUser<Guid>，明确使用Guid作为主键类型
/// </summary>
public class AppUser : IdentityUser<Guid>
{
    /// <summary>
    /// 用户真实姓名
    /// </summary>
    public string FullName { get; set; } = string.Empty;

    /// <summary>
    /// 注册时间
    /// </summary>
    public DateTime RegistrationDate { get; set; } = DateTime.UtcNow;

    /// <summary>
    /// 最后登录时间
    /// </summary>
    public DateTime? LastLoginTime { get; set; }

    /// <summary>
    /// 账户是否激活
    /// </summary>
    public bool IsActive { get; set; } = true;
}
